import { GET_SHOP,GET_CLASSIFY } from './type'
export default {
    [GET_SHOP](state,data) {
        state.list = data
        // state.nowList = data
    },
    [GET_CLASSIFY](state,classify) {
        console.log(classify);
        if(classify) {
            state.nowList = state.list.filter((item) => {
                return item.classify == classify;
            })
        }
    }
}